<?php /* Smarty version 2.6.26, created on 2013-05-18 04:40:32
         compiled from frm_topictypes_mng.html */ ?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header_frm.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<body>
		<form action="frm_topictypes_mng.php" method="post">			
			<div>添加类型：</div>
			<div style="float:left;"><input type="text" name="topictype_name" size="16"/></div>
			<div><input type="submit" value="添加"/></div>
			<div>现有类型：</div>
			<div>
				<!--类型列表-->
				<?php unset($this->_sections['index']);
$this->_sections['index']['name'] = 'index';
$this->_sections['index']['loop'] = is_array($_loop=$this->_tpl_vars['topictypes']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['index']['show'] = true;
$this->_sections['index']['max'] = $this->_sections['index']['loop'];
$this->_sections['index']['step'] = 1;
$this->_sections['index']['start'] = $this->_sections['index']['step'] > 0 ? 0 : $this->_sections['index']['loop']-1;
if ($this->_sections['index']['show']) {
    $this->_sections['index']['total'] = $this->_sections['index']['loop'];
    if ($this->_sections['index']['total'] == 0)
        $this->_sections['index']['show'] = false;
} else
    $this->_sections['index']['total'] = 0;
if ($this->_sections['index']['show']):

            for ($this->_sections['index']['index'] = $this->_sections['index']['start'], $this->_sections['index']['iteration'] = 1;
                 $this->_sections['index']['iteration'] <= $this->_sections['index']['total'];
                 $this->_sections['index']['index'] += $this->_sections['index']['step'], $this->_sections['index']['iteration']++):
$this->_sections['index']['rownum'] = $this->_sections['index']['iteration'];
$this->_sections['index']['index_prev'] = $this->_sections['index']['index'] - $this->_sections['index']['step'];
$this->_sections['index']['index_next'] = $this->_sections['index']['index'] + $this->_sections['index']['step'];
$this->_sections['index']['first']      = ($this->_sections['index']['iteration'] == 1);
$this->_sections['index']['last']       = ($this->_sections['index']['iteration'] == $this->_sections['index']['total']);
?>
				<div style="float: left;width:256px;margin-right: 8px;">
					<?php echo $this->_tpl_vars['topictypes'][$this->_sections['index']['index']]->getTopicTypeName(); ?>

				</div>
				<div>
					<a href="frm_topictypes_mng.php?topictype_id=<?php echo $this->_tpl_vars['topictypes'][$this->_sections['index']['index']]->getTopicTypeId(); ?>
">删除</a>
				</div>
				<?php endfor; endif; ?>
			</div>
			
		</form>
	</body>
</html>